package d2_reflect;

public class Student {


    //添加成员变量
    private int age;
    private String name;

    //无参构造器
    private Student() {
    }

    //有参构造器
    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
